LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := game_shared

LOCAL_MODULE_FILENAME := libgame

LOCAL_SRC_FILES := hellocpp/main.cpp \
                ../../Classes/AppDelegate.cpp \
                ../../Classes/HelloWorldScene.cpp \
                ../../Classes/Helper/b2DebugDraw.cpp \
			../../Classes/ScreenManager.cpp \
    		../../Classes/GameObject/GameObject.cpp \
    		../../Classes/GameLayer/GameLayer.cpp \
    		../../Classes/GameLayer/InGameScreen/SinglePlayScreen.cpp \
    		../../Classes/GameData/GameData.cpp \
    		../../Classes/Helper/Helper.cpp \
    		../../Classes/GameData/DataAccess.cpp \
    		../../Classes/GameData/ChapterData.cpp \
    		../../Classes/GameData/LevelData.cpp \
    		../../Classes/GameLayer/InGameScreen/GamePlayScreen.cpp \
    		../../Classes/GameObject/PhysicObject.cpp \
    		../../Classes/GameObject/MapObject/Land.cpp \
    		../../libs/pugixml/pugixml.cpp \
    		../../Classes/GameData/ShapeData.cpp \
    		../../Classes/GameObject/MapObject/Cloud.cpp \
    		../../Classes/GameObject/MapObject/BallTest.cpp \
    		../../Classes/GameObject/MapObject/LandPhysic.cpp \
    		../../Classes/GameObject/Character/Character.cpp \
    		../../Classes/GameObject/Character/Balloon.cpp \
    		../../Classes/GameObject/Character/Hero.cpp \
    		../../Classes/GameObject/Character/Enemy.cpp \
    		../../Classes/Helper/GameCamera.cpp
                   
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../libs/Box2D \
		$(LOCAL_PATH)/../../libs/sqlite3 \
		$(LOCAL_PATH)/../../libs/libwebsockets \
		$(LOCAL_PATH)/../../libs/chipmunk \
		$(LOCAL_PATH)/../../libs/pugixml \
		$(LOCAL_PATH)/../../Classes \
		$(LOCAL_PATH)/../../Classes/Helper \
		$(LOCAL_PATH)/../../Classes/GameData \
		$(LOCAL_PATH)/../../Classes/GameLayer \
		$(LOCAL_PATH)/../../Classes/GameLayer/InGameScreen \
		$(LOCAL_PATH)/../../Classes/GameObject \
		$(LOCAL_PATH)/../../Classes/GameObject/MapObject \
		$(LOCAL_PATH)/../../Classes/GameObject/Character   

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static box2d_static
            
include $(BUILD_SHARED_LIBRARY)

$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions) $(call import-module,Box2D)
